package com.ctshk.rpc.order.custom.req.order;

import com.ctshk.common.req.MainData;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

/**
 * 购买保险明细
 */
@Data
@ApiModel(value="购买保险明细", description="购买保险明细")
public class InsuranceDetialReq implements Serializable {

    @NotNull(message = "旅客类型主数据id不能为空")
    @ApiModelProperty(value = "旅客类型主数据id",required = true)
    private Long touristTypeId;

    @NotNull(message = "旅客类型不能为空")
    @ApiModelProperty(value = "旅客类型",required = true)
    private String touristTypeName;

    @NotNull(message = "币種ID不能为空")
    @ApiModelProperty(value = "币種ID",required = true)
    private Long currencyId;

    @NotNull(message = "币種名称不能为空")
    @ApiModelProperty(value = "币種名称",required = true)
    private String currency;

    @NotNull(message = "人数不能为空")
    @ApiModelProperty(value = "人数",required = true)
    private Integer peopleNum;

    @NotNull(message = "单价不能为空")
    @ApiModelProperty(value = "单价",required = true)
    private BigDecimal price;

    @NotNull(message = "旅客ID集合不能为空")
    @ApiModelProperty(value = "旅客ID集合",required = true)
    private List<MainData> touristList;

}
